#! /bin/sh
patch -p1 -l -f $* < $0
exit $?

From 438f98aed2dd8857c6ea73b3b93b9cd0abaf6993 Mon Sep 17 00:00:00 2001
From: Andre Heinecke <aheinecke@intevation.de>
Date: Thu, 28 Jan 2016 15:27:54 +0100
Subject: [PATCH 1/2] Make QDbus optional

This removes the Klipper integration of KPasteAction if QDBus
is not available.
---
 CMakeLists.txt                    | 11 ++++++++++-

diff --git a/CMakeLists.txt b/CMakeLists.txt
index bed53d1..87f976c 100644
--- CMakeLists.txt.orig 2018-02-28 08:33:32.052419561 +0100
+++ CMakeLists.txt      2018-02-28 08:35:44.523986191 +0100
@@ -13,7 +13,7 @@

 set(REQUIRED_QT_VERSION 5.10.0)
 find_package(Qt5 "${REQUIRED_QT_VERSION}" CONFIG REQUIRED Widgets)
-if (NOT ANDROID)
+if (NOT ANDROID AND NOT WIN32)
   find_package(Qt5 "${REQUIRED_QT_VERSION}" CONFIG REQUIRED DBus)
 endif()
 include(KDEInstallDirs)
@@ -34,7 +34,7 @@
                         PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5ConfigWidgetsConfigVersion.cmake"
                         SOVERSION 5)

-if (NOT ANDROID)
+if (NOT ANDROID AND NOT WIN32)
   find_package(KF5Auth ${KF5_DEP_VERSION} REQUIRED)
 endif()
 find_package(KF5CoreAddons ${KF5_DEP_VERSION} REQUIRED)
--
2.1.4
